package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.SaleCartBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ISaleCartMapper extends BaseMapper<SaleCartBean> {
    /**
     * 按用户编号查询销售车信息
     * @param userId 用户编号
     * @return 销售车集合
     */
    public List<SaleCartBean> findByUserId(Integer userId);

    /**
     * 查询用户销售车的总额
     * @return 销售总额
     */
    public Integer getTotalByUser(Integer userId);
}
